const defaultState = {

    newsList: []
}

export default function newsList(prevState = defaultState, action) {
    switch (action.type) {
        case "changeNewsList":
           return {
                 ...prevState,
                newsList:action.list
            }
            break;

        default:
            return prevState
            break;
    }
}